import http from "@/api";
import { Picker, PickerDetail } from "@/api/interface/city/cityPicker";
// 取货员模块
// 列表
export const getPickerListAPI = (params: Picker.StatusParams) => {
  return http.get<Picker.Row[]>("/manager/picker/list", params);
};
// 添加
export const addPickerAPI = (data: Picker.AddParams) => {
  return http.post("/manager/picker", data);
};
// 获取详情
export const getPickerDetailAPI = (id: string) => {
  return http.get<PickerDetail.Data>(`/manager/picker/${id}`);
};
// 审核
export const auditPickerAPI = (data: Picker.AuditParams) => {
  return http.post(`/manager/picker/audit`, data);
};
// 注销账号
export const cancelPickerAPI = (params: { id: string }) => {
  return http.post(`/manager/picker/cancel`, params);
};
// 获取取货员关联信息
export const getPickerRelationAPI = (id: string) => {
  return http.get<Picker.RelationData>(`/manager/picker/relateDetail/${id}`);
};
